/*
 * Project Beknyou
 * Copyright (c) 2010-2011 Saint Paul College, All Rights Reserved
 * Redistributions in source code form must reproduce the above
 * Copyright and this condition.
 * The contents of this file are subject to the GNU General Public
 * License, Version 2 (the "License"); you may not use this file
 * except in compliance with the License. A copy of the License is
 * available at http://www.opensource.org/licenses/gpl-license.php.
 */
package com.benkyou.common.messages;

import com.jme3.network.AbstractMessage;
import com.jme3.network.serializing.Serializable;

/**
 *
 * @author Austin Allman
 */
@Serializable
public class LoginMessage extends AbstractMessage {

    private String loginName;
    private char[] password;
    private int id;
    private String UUID;

    public LoginMessage() {
    }

    public LoginMessage(String loginName, char[] password, int id, String UUID) {
        this.loginName = loginName;
        this.password = password;
        this.id = id;
        this.UUID = UUID;
    }
    public String getUUID(){
        return UUID;
    }
    public int getID(){
        return id;
    }
    public void setID(int id){
        this.id = id;
    }

    /**
     * @return the loginName
     */
    public String getLoginName() {
        return loginName;
    }

    /**
     * @param loginName the loginName to set
     */
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    /**
     * @return the password
     */
    public char[] getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(char[] password) {
        this.password = password;
    }
    
}
